from view.base_view import BaseView
from appium.webdriver.common.appiumby import AppiumBy

"""
ths首页
"""


class HomePageView(BaseView):
    homepage = (AppiumBy.XPATH, "//android.widget.TextView[@text='首页']")

    def click_home_page(self):
        """
        进入首页
        :return:
        """
        self.find_element(self.homepage).click()
